﻿@using QLNS
@{
    ViewBag.Title = "Update";
    Layout = "~/Views/Shared/_Home.cshtml";
}

@{
    ChiTietPhuCap tdll = ViewBag.DSChiTietPhuCap;
    List<SelectListItem> selectListIDLyLuan = new List<SelectListItem>();
    List<PhuCap> idll = ViewBag.DSPhuCap;
    foreach (var l in idll)
    {
        SelectListItem item = new SelectListItem();
        item.Text = l.Ten;
        item.Value = l.ID.ToString();
        if (tdll.IDPhuCap == l.ID)
        {
            item.Selected = true;
        }
        selectListIDLyLuan.Add(item);
    }
} 


@using (Html.BeginForm("Update", "AlloDet", FormMethod.Post, new { name = "form", id = "submit" }))
 { 
    <div class="toolbar">
        <ul>
            <li><input class="tbtnBack" type="button" value="Quay về" onclick="javascript:history.back()"/>
            </li>
            <li><input class="tbtnSave" type="Submit" value="Lưu" /> 
            </li>
        </ul>
        <div class="ttitle">Sửa Hồ sơ</div>
    </div>
    <table width="500" border="1">
     <tr>
 
        <td>Phụ cấp</td>
    <td>@Html.DropDownList("IDPhuCap", selectListIDLyLuan)</td>
  </tr>
 
</table>
 <input type=hidden id="idcancapnhat" value="@tdll.ID" />
        <input id="botton" type="Submit" value="Lưu" class="btnSave"/>
 }

